package itbour.onetouchshow.constants;


import android.util.SparseArray;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

import itbour.onetouchshow.utils.UIUtils;

/**
 * @描述 全局常量类
 */
public class AppConst {

    public static final String PLAY_LARGE = "视频";
    //  业务分类 暂定如下: 1 竖屏类型(单页/印品), 2 视频类型, 3 ppt 类型
//    public static final int VERTICAL_ORTYPE = 1;
//    public static final int VIDIO_ORTYPE = 2;
//    public static final int PPT_ORTYPE = 3;
    //用于测试数据的userId
    public static final int TEST_USERID = 299188;


    //android 端标识
    public static final int ANDROID_DEVICE = 610;
    //ct:609文字 603图形 602图片   文字和图形的结构基本相同 文字editable为1 图形603为  610代表表格
    public static final int INCHING_IMAGEVIEW_TYPE = 602;
    public static final int INCHING_TEXTVIEW_TYPE = 609;
    public static final int INCHING_SHAPEVIEW_TYPE = 603;
    public static final int INCHING_TABLEVIEW_TYPE = 610;

    public static final String ISLOGIN = "isLogin";
    //标记微调pw的点击事件
    public static final String PW_TV_DEL = "PW_TV_DEL";
    public static final String PW_TV_EDIT = "PW_TV_EDIT";
    public static final String PW_IMG_EDIT = "PW_IMG_EDIT";
    public static final String PW_IMG_DEL = "PW_IMG_DEL";
    public static final String PW_TAB_EDIT = "PW_TAB_EDIT";
    public static final String PW_TAB_DEL = "PW_TAB_DEL";
    public static final String PW_TAB_COLOR = "PW_TAB_COLOR";

    public static final String BUYXIUMI = "BUYXIUMI";

    /*默认延迟加载时间*/
    public static final int DELAYED_TIME = 200;
    /*每页加载数据条数*/
    public static final int PAGE_SIZE = 10;
    /**
     * 记录微调文字操作控件的选中标记
     */
    public static final String WENBEN = "WENBEN";
    public static final String YANSE = "YANSE";
    public static final String ZITI = "ZITI";
    public static final String YANGSHI = "YANGSHI";
    //从文字操作跳转到颜色
    public static final String WAITYANSE = "WAITYANSE";
    public static final String WAITZITI = "WAITZITI";
    public static final String WAITYANGSHI = "WAITYANGSHI";
    public static final String CONTRL = "JSCallMobile";
    public static final String PORVIDER = "itbour.onetouchshow.fileprovider";
    //上传
    public static final String OSSBUCKETNAME = "itbour-user";
    //下载
    public static final String OSSDOWNBUCKETNAME = "itbour-generate";
    //设计支持表格的版本
    public final static int SUPPROT_TABLE_VERSION = 4;
    //    //开始支持relations的版本
    public final static int SUPPROT_RELATIONSLIST_VERSION = 3;
    //    //和后台约定当前所应用所支持的版本 视频支持背景
    public final static int SUPPROT_VIDEO_VERSION = 4;
    //和后台约定当前所应用所支持的版本 视频支持背景
    public final static int SUPPROT_DESIGN_VERSION = 3;
    //输入框最大输入字数限制
    public final static int editTextMaxLength = 10;
    //这两个字段 在取relations时 区别是取objid还是pageindex
    public static final int OBJIDTAG = 100;
    //这两个字段
    public static final int PAGEINDEXTAG = 200;
    public static final String REFRESH_TABLE = "REFRESH_TABLE";
    public static final String USER_INFO = "userInfor";
    //去相册
    public static final int TOPHOTO = 888;
    //页面刷新
    public static final int REFRESH = 8000;
    //返回取到了返回的图片路径
    public static final int CHANGE_IMG_RESULT = 889;
    //加图的路径
    public static final int TO_ADD_IMAGE = 890;
    //加图的返回路径
    public static final int TO_ADD_IMAGE_BACK = 891;
    //去相册传入的蒙板
    public static final String TOPHOTO_MASK = "TOPHOTO_MASK";
    //本地图片的路径
    public static final String LOCAL_PHOTO_PATH = "LOCAL_PHOTO_PATH";
    public static final String LOCAL_PHOTO_PATH_NAME = "LOCAL_PHOTO_PATH_NAME";
    public static final String PHOTO_BITMAP_W = "PHOTO_BITMAP_W";
    public static final String PHOTO_BITMAP_H = "PHOTO_BITMAP_H";
    //用于标识是否是clip界面是否是二维码
    public static final String NODE_IS_QRCODE = "NODE_IS_QRCODE";
    public static final String NODE_IS_PRINT = "NODE_IS_PRINT";
    public static final int ROOT_VALUE_TEXT = 1;
    public static final int ROOT_VALUE_IMG = 2;
    public static final int ROOT_VALUE_TABLE = 3;
    public static final int ROOT_VALUE_VIDEO = 7;
    public static final String NoData = "没有数据";
    /*WEB TYPE*/
    public static final String WEBTYPE = "WEBTYPE";

    //用于测试数据的docId
    //public static final int TEST_DOCID = 834;
    public static final String TYPE_ABOUT_ME = "TYPE_ABOUT_ME";
    public static final String TYPE_PAYAGREEMENT = "TYPE_PAYAGREEMENT";
    public static final String TYPE_USERAGREEMENT = "USERAGREEMENT";
    public static final String TYPE_ADDFORM = "TYPE_ADDFORM";
    public static final String TYPE_ADDFORM_STATE = "TYPE_ADDFORM_STATE";
    public static final String TYPE_FREEBACKINFO = "TYPE_FREEBACKINFO";
    public static final String TYPE_QA = "TYPE_QA";
    public static final String TYPE_VIP_AGREEMENT = "TYPE_VIP_AGREEMENT";
    public static final String TYPE_WEB = "WEB";
    public static final String TYPE_WEB_NEED_ENCRYPT = "TYPE_WEB_NEED_ENCRYPT";
    public static final String WEBURL = "WEBURL";
    public static final String APP_VIP_WEB_PAY = "APP_VIP_WEB_PAY";
    public static final String COMWEB_XIUMI = "COMWEB_XIUMI";
    public static final String WEB_TITLE = "WEB_TITLE";
    public static final String WITH_ACTIVITY_ANIM = "WITH_ACTIVITY_ANIM";
    public static final String TYPE_WEB_CHALLENGE = "TYPE_WEB_CHALLENGE";
    public static final String TYPE_WEB_PROFIT = "TYPE_WEB_PROFIT";
    public static final String APPBASEINFO = "APPBASEINFO";
    public static final String VIDEOW = "videoW";
    public static final String VIDEOH = "videoH";
    public static final String VIDEOURL = "videoUrl";
    public static final String ID = "ID";
    public static final String DOCID = "DOCID";
    public static final String JS_CALLBACK_URL = "JS_CALLBACK_URL";
    public static final String KEY_SHOW_BOTTOM_CONTROLLER = "KEY_SHOW_BOTTOM_CONTROLLER";
    public static final String OPTYPE = "OPTYPE";
    public static final String BGID = "BGID";
    public static final String ISHAVECOVER = "ishaveCover";
    public static final String ISLOCALHOSTVIDEO = "islocalhost";
    public static final String HOTTAGADAPTER = "HotTagAdapter";
    public static final String HISKEY = "hisKey";
    public static final String HISADAPTER = "hisAdapter";
    public static final int MAX_TAG_SIZE = 9;
    public static final String EXIT = "exit";
    public static final String DESIGN = "design";
    public static final String MAIN = "main";
    public static final String VIDEOBEAN = "videoBean";
    public static final String APP_ID = "wx5022d3c8ad81e74f";
    public static final String APP_SECRET = "db846ab731f65c89fe77c49ad3af5612";
    public static final String PLAY_MOVIE_KEY = "PLAY_MOVIE_KEY";
    //Vip会员相关
    public static final String ITEM_ID = "ITEM_ID";
    public static final String PRICE_ID = "PRICE_ID";
    public static final String IS_VIP_ORDER = "IS_VIP_ORDER";
    public static final String MAKE_WORK_STATE = "MAKE_WORK_STATE";
    //服务器地址
    public static final String KEY_SERVICE_ADDRESS = "KEY_SERVICE_ADDRESS";
    //自定义分享编辑的标题
    public static final String KEY_APP_SHARE_TITLE = "KEY_APP_SHARE_TITLE";
    //自定义分享编辑的内容
    public static final String KEY_APP_SHARE_CONTENT = "KEY_APP_SHARE_CONTENT";
    //存视频配置信息
    public static final String KEY_PERSONAL_CREATE_CONFIG = "KEY_PERSONAL_CREATE_CONFIG";
    //视频大小的实体类
    public static final String KEY_VIDEO_SIZE_CONFIG = "KEY_VIDEO_SIZE_CONFIG";
    //最大录制时间
    public static final String KEY_VIDEO_RECORD_MAX_SECONDS = "KEY_VIDEO_RECORD_MAX_SECONDS";
    //录制视频的地址
    public static final String KEY_RECORD_VIDEO_PATH = "KEY_RECORD_VIDEO_PATH";
    //选择BGM的ID
    public static final String KEY_BGM_ID = "KEY_BGM_ID";
    //视频大小的实体类
    public static final String KEY_VIDEO_PRODUCT_ID = "KEY_VIDEO_PRODUCT_ID";
    //视频大小的实体类
    public static final String KEY_VIDEO_URL = "KEY_VIDEO_URL";
    //自由创建视频实体类
    public static final String KEY_FREECRE = "KEY_FREECREATEORIGIN";
    //滤镜
    public static final String KEY_VIDEO_EFFECTSBEAN = "KEY_VIDEO_EFFECTSBEAN";
    //滤镜
    public static final String KEY_VIDEO_MAINASSETSBEAN = "KEY_VIDEO_MAINASSETSBEAN";
    //选择BGM的ID
    public static final String KEY_BGM_BEAN = "KEY_BGM_BEAN";
    //视频大小的实体类
    public static final String KEY_USER_TYPE = "KEY_USER_TYPE";
    //最大拍摄时长
    public final static int MAXRECORDSECONDS = 60;
    //自定义自由创建分享编辑的标题
    public static final String KEY_CUSTOM_SHARE_TITLE = "KEY_CUSTOM_SHARE_TITLE";
    //自定自由创建义分享编辑的内容
    public static final String KEY_CUSTOM_SHARE_CONTENT = "KEY_CUSTOM_SHARE_CONTENT";
    //Dialog显示的时间
    public static final String KEY_DIALOG_SHOW_TIME = "KEY_DIALOG_SHOW_TIME";
    //是否进入过后台
    public static final String KEY_IS_GO_TO_BACKGROUND = "KEY_IS_GO_TO_BACKGROUND";
    //弹框的信息
    public static final String KEY_DIALOG_INFO = "KEY_DIALOG_INFO";
    //玩大片模板IDS
    public static final String KEY_MODULE_IDS = "KEY_MODULE_IDS";
    //字幕已有内容
    public static final String KEY_FONT_INPUT_CONTENT = "KEY_FONT_INPUT_CONTENT";
    /*搜索需要用到的ID*/
    public static Set<Integer> mSearchIds = new HashSet<>();
    public static Map<Integer, String> mAllType = new HashMap<>();
    public static int CURRENT_PAGE = -1;
    public static int CURRENT_ME = -1;
    public static String BY_VIP_TAG;
    public static int APP_DIALOG_WIDTH = UIUtils.WHD()[0] / 100 * 65;
    public static SparseArray<String> fragmentIdIndex = new SparseArray<>();


}

